package com.pdool.room.controller;

import com.pdool.api.service.game.IHelloService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {
    @DubboReference(url="127.0.0.1:20880")
    IHelloService helloService;
    @GetMapping("/rest")
    public String sayHello(){
        String s = helloService.sayHello("香菜");
        return s;
    }
}
